<template>
	<view class="person_system">
		<view class="sys_main">
			<view class="top">
				<image class="logo" :src="logo" mode=""></image>
				<view class="title">
					关于系统
				</view>
				<view class="txet">
					v{{newversion}}
				</view>
			</view>
			<view class="bot">
				<view class="text">
					<text @click="textBtn(1)">《用户协议》</text>
					<text>|</text>
					<text @click="textBtn(2)">《隐私政策》</text>
				</view>
				<view class="text">{{eserved}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				logo:'',
				newversion:'',
				eserved:'',
			};
		},
		onLoad() {
			var that = this
			that.$tips.showLoading('加载中')
			that.$httpApi.indexVersion().then((res)=>{
				that.$tips.hideLoading()
				if(res.code==1){
					that.logo=res.data.logo
					that.newversion=res.data.newversion
					that.eserved=res.data.eserved
				}
			})
		},
		methods:{
			//
			textBtn(val){
				uni.navigateTo({
					url:'/pages/other/text?type='+val
				})
			},
		}
	}
</script>

<style lang="less">
	.person_system{
		width: 100%;
		.sys_main{
			width: 100%;
			height: 100vh;
			padding: 120rpx 32rpx;
			display: flex;
			justify-content: space-between;
			flex-direction: column;
			.top{
				width: 100%;
				.logo{
					display: block;
					width: 206rpx;
					height: 206rpx;
					margin: auto;
					border-radius: 50%;
				}
				.title{
					padding-top: 48rpx;
					width: 100%;
					text-align: center;
					font-size: 36rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 500;
					color: #222222;
				}
				.txet{
					padding-top: 10rpx;
					width: 100%;
					text-align: center;
					font-size: 28rpx;
					font-family: PingFang SC-Medium, PingFang SC;
					font-weight: 400;
					color: #888888;
				}
			}
			.bot{
				width: 100%;
				.text{
					padding-top: 10rpx;
					width: 100%;
					text-align: center;
					font-size: 28rpx;
					font-family: PingFang SC-Regular, PingFang SC;
					font-weight: 400;
					color: #999999;
				}
			}
		}
	}
</style>
